package po;


import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * <p>  
 *  TbReq 用户请求表
 * </p>
 * @author  XieTao
 * @date 2020-04-10 
 */

public class TbReq  implements Serializable {


	/**
	 * 请求ID
	 */
	private String rid;

	/**
	 * 请求类型
	 */
	private Integer reqType;

	/**
	 * 是否禁止请求
	 */
	private Integer isBan;

	/**
	 * 请求发起人
	 */
	private String reqInitiator;

	/**
	 * 请求接收方
	 */
	private String reqReceive;

	/**
	 * 是否删除
	 */
	private Integer isDelete;

	/**
	 * 发送请求时间
	 */
	private Date createTime;

	/**
	 * 请求来源
	 */
	private Integer source;

	/**
	 * 请求消息内容
	 */
	private String content;

	/**
	 * 初始分组ID
	 */
	private String initGroup;

	/**
	 * 初始备注信息
	 */
	private String initNick;

	/**
	 * 请求处理用户id
	 */
	private String handleUser;

	public String getRid() {
		return rid;
	}

	public void setRid(String rid) {
		this.rid = rid;
	}

	public Integer getReqType() {
		return reqType;
	}

	public void setReqType(Integer reqType) {
		this.reqType = reqType;
	}

	public Integer getIsBan() {
		return isBan;
	}

	public void setIsBan(Integer isBan) {
		this.isBan = isBan;
	}

	public String getReqInitiator() {
		return reqInitiator;
	}

	public void setReqInitiator(String reqInitiator) {
		this.reqInitiator = reqInitiator;
	}

	public String getReqReceive() {
		return reqReceive;
	}

	public void setReqReceive(String reqReceive) {
		this.reqReceive = reqReceive;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getSource() {
		return source;
	}

	public void setSource(Integer source) {
		this.source = source;
	}

	public String getContent() {
		return content;
	}

	public void setMsg(String content) {
		this.content = content;
	}

	public String getInitGroup() {
		return initGroup;
	}

	public void setInitGroup(String initGroup) {
		this.initGroup = initGroup;
	}

	public String getInitNick() {
		return initNick;
	}

	public void setInitNick(String initNick) {
		this.initNick = initNick;
	}

	public String getHandleUser() {
		return handleUser;
	}

	public void setHandleUser(String handleUser) {
		this.handleUser = handleUser;
	}

	@Override
	public String toString() {
		return "TbReq{" +
				"rid='" + rid + '\'' +
				", reqType=" + reqType +
				", isBan=" + isBan +
				", reqInitiator='" + reqInitiator + '\'' +
				", reqReceive='" + reqReceive + '\'' +
				", isDelete=" + isDelete +
				", createTime=" + createTime +
				", source=" + source +
				", content='" + content + '\'' +
				", initGroup='" + initGroup + '\'' +
				", initNick='" + initNick + '\'' +
				", handleUser='" + handleUser + '\'' +
				'}';
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (!(o instanceof TbReq)) {
			return false;
		}
		TbReq tbReq = (TbReq) o;
		return Objects.equals(rid, tbReq.rid) &&
				Objects.equals(reqType, tbReq.reqType) &&
				Objects.equals(isBan, tbReq.isBan) &&
				Objects.equals(reqInitiator, tbReq.reqInitiator) &&
				Objects.equals(reqReceive, tbReq.reqReceive) &&
				Objects.equals(isDelete, tbReq.isDelete) &&
				Objects.equals(createTime, tbReq.createTime) &&
				Objects.equals(source, tbReq.source) &&
				Objects.equals(content, tbReq.content) &&
				Objects.equals(initGroup, tbReq.initGroup) &&
				Objects.equals(initNick, tbReq.initNick) &&
				Objects.equals(handleUser, tbReq.handleUser);
	}

	@Override
	public int hashCode() {
		return Objects.hash(rid, reqType, isBan, reqInitiator, reqReceive, isDelete, createTime, source, content, initGroup, initNick, handleUser);
	}
}
